package com.jiazhong.mingxing.boot.boot09.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/first")
public class FirstController {

    @GetMapping("/a")
    public String a() {
        log.info("This is FirstController`a method!");
        return "This is FirstController`a method!";
    }

    @GetMapping("/b")
    public String b() {
        log.info("This is FirstController`b method!");
        return "This is FirstController`b method!";
    }

    @GetMapping("/c")
    public String c() {
        log.info("This is FirstController`c method!");
        return "This is FirstController`c method!";
    }

    @GetMapping("/d")
    public String d() {
        log.info("This is FirstController`d method!");
        return "This is FirstController`d method!";
    }
}
